package com.hsgene.order.constants.v1;

/**
 * 上传DCW
 *
 * @author wxf
 * @date 2018/9/28 17:49
 **/
public enum UploadDcwEnum {

    ORDER_ID("orderId", "检测单ID"),
    DCW_FIGURES("dcwFigures", "dcw原始病历"),
    YIZHU_FIGURES("yizhuFigures", "医嘱单"),
    IMAGE_FIGURES("imageFigures", "影像检查"),
    MIRROE_FIGURES("mirrorFigures", "镜像检查"),
    TUMOR_FIGURES("tumorFigures", "肿瘤标志物"),
    BLOOD_FIGURES("bloodFigures", "血液检查");

    private String name;
    private String desc;

    UploadDcwEnum(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public static String getEnum(String name) {
        for (UploadDcwEnum dcwEnum : values()) {
            if (dcwEnum.getName().equals(name)) {
                return dcwEnum.getDesc();
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }
}
